Micron Document
| SparkN0de-git | SparkN0de |


Commit 7a89c3ed799457ae1749ce177962d308ec688e03


Parents : 04a0962
Author : Mark Qvist <mark@unsigned.io>
Date : 2025-11-10T02:12:03+01:00

Improved call notification visibility

Changes

1 files changed, 4 insertions(+), 1 deletions(-)


Diff

diff --git a/sbapp/services/sidebandservice.py b/sbapp/services/sidebandservice.py
index 75796a8e..e5a4b438 100644
--- a/sbapp/services/sidebandservice.py
+++ b/sbapp/services/sidebandservice.py
@@ -89,7 +89,10 @@ class SidebandService():
if context_id in silent_contexts: silent = True
else: silent = False
- self.notification_channel = NotificationChannel(channel_id, channel_name, NotificationManager.IMPORTANCE_DEFAULT)
+ if context_id == "incoming_call": channel_importance = NotificationManager.IMPORTANCE_HIGH
+ else: channel_importance = NotificationManager.IMPORTANCE_DEFAULT
+
+ self.notification_channel = NotificationChannel(channel_id, channel_name, channel_importance)
self.notification_channel.enableVibration(True)
if not silent: self.notification_channel.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION), None)
else: self.notification_channel.setSound(None, None)


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────